value

Class: com.microstrategy.web.app.taglibs.ValueTag

Usage:

This tag retrieves the value of the a preference or a configuration parameter or an enumeration or from the request keys.
The place from where the value will be retrieved will be specified in the type attribute of this tag. The name is specified in the name attribute of this tag. There is an optional attribute named as attribute which will append any text specified here before rendering the actual value. If this attribute is present, we will render the actual value within a double quote and an equals to sign after the attribute.For example, the following snippet shows how the value tag is used to extract the actual value of a constant. This would render the "~" character as this is the specified value for this constant:
 <web:value type="enum" name="com.microstrategy.web.app.utils.ExpressionHelper.ITEM_SEPARATOR" />
 
In other cases, developers may want to use the value tag in conjunction with other HTML tags to generate dynamic output. For example, the following snippet would generate an anchor tag where the “HREF” attribute would be set to the name of the Admin Servlet:
 <A <web:value name="adminServletDeploymentName" type="config" attribute="HREF" /> >[Go to the Web Administrator]</A>
 


Name Required? Description
attribute false Sets the value assigned to the attribute attribute of the custom tag instance that uses this helper
name true Indicates the name of the variable whose value we are supposed to render.
If the type attribute is set to 'misc', the valid values for this attribute include:
  • unitsLabel returns the label (cm, inches, pixels, etc) from the user preferences
  • units returns the corresponding unit id for the length units (cm, inches, pixels, etc)
  • browserSpecificCSS returns the name of the css file used exclusively by the current browser
  • officeSetup returns the link to the mstr office configuration page
  • postContent false Sets the value assigned to appear after the value of this tag
    preContent false Sets the value assigned to appear before the value of this tag
    type true Indicates the type of the variable whose value we are supposed to render.
    The list of valid values for this attribute include:
  • requestKey will look for the property name in the RequestKeys instance available
  • browserSetting will look for the property name in the BrowserSettings instance available
  • systemPreference will look for the property name in the Preferences instance available for System Preferences
  • preference will look for the property name in the Preferences instance available for User Preferences
  • config will look for the property name in the configuration parameters as specified in the web.xml file
  • enum will look for the property name in the enumeration specified in the name argument
  • misc indicates a miscellaneous value type. The value type needs to be specified in the name attribute
  • httpSession will look for the property name in the httpSession stored in ServiceContainer instance